package model.util;

import model.Agent;

public class CaseSansMarquage {

	private byte ressource;
	private Agent occupation;

	public CaseSansMarquage(){
		ressource = 0;
		occupation = null;
	}

	public CaseSansMarquage(byte ressource_){
		this.ressource = ressource_;
		occupation = null;
	}

	public CaseSansMarquage(Agent occupation_) {
		ressource = 0;
		occupation = occupation_;
	}

	public byte getRessource() {
		return ressource;
	}

	public void setRessource(byte ressource) {
		this.ressource = ressource;
	}

	public void putRessource(byte val) { 
		ressource = val;
	}

	public byte takeRessource() {
		byte ressourcetmp = ressource;
		ressource = 0;
		return ressourcetmp;
	}

	public Agent getOccupation(){
		return occupation;
	}

	public void setOccupation(Agent occupe){
		occupation = occupe;
	}
}
